package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 支出信息
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2024-02-24 21:57:14
 */
@TableName("zhichuxinxi")
public class ZhichuxinxiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public ZhichuxinxiEntity() {
		
	}
	
	public ZhichuxinxiEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
    @TableId(type = IdType.AUTO)
    private Long id;
	/**
	 * 支出名称
	 */
					
	private String zhichumingcheng;
	
	/**
	 * 支出图片
	 */
					
	private String zhichutupian;
	
	/**
	 * 支出类型
	 */
					
	private String zhichuleixing;
	
	/**
	 * 支出金额
	 */
					
	private Double zhichujine;
	
	/**
	 * 登记时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date dengjishijian;
	
	/**
	 * 支出明细
	 */
					
	private String zhichumingxi;
	
	/**
	 * 用户账号
	 */
					
	private String yonghuzhanghao;
	
	/**
	 * 用户姓名
	 */
					
	private String yonghuxingming;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：支出名称
	 */
	public void setZhichumingcheng(String zhichumingcheng) {
		this.zhichumingcheng = zhichumingcheng;
	}
	/**
	 * 获取：支出名称
	 */
	public String getZhichumingcheng() {
		return zhichumingcheng;
	}
	/**
	 * 设置：支出图片
	 */
	public void setZhichutupian(String zhichutupian) {
		this.zhichutupian = zhichutupian;
	}
	/**
	 * 获取：支出图片
	 */
	public String getZhichutupian() {
		return zhichutupian;
	}
	/**
	 * 设置：支出类型
	 */
	public void setZhichuleixing(String zhichuleixing) {
		this.zhichuleixing = zhichuleixing;
	}
	/**
	 * 获取：支出类型
	 */
	public String getZhichuleixing() {
		return zhichuleixing;
	}
	/**
	 * 设置：支出金额
	 */
	public void setZhichujine(Double zhichujine) {
		this.zhichujine = zhichujine;
	}
	/**
	 * 获取：支出金额
	 */
	public Double getZhichujine() {
		return zhichujine;
	}
	/**
	 * 设置：登记时间
	 */
	public void setDengjishijian(Date dengjishijian) {
		this.dengjishijian = dengjishijian;
	}
	/**
	 * 获取：登记时间
	 */
	public Date getDengjishijian() {
		return dengjishijian;
	}
	/**
	 * 设置：支出明细
	 */
	public void setZhichumingxi(String zhichumingxi) {
		this.zhichumingxi = zhichumingxi;
	}
	/**
	 * 获取：支出明细
	 */
	public String getZhichumingxi() {
		return zhichumingxi;
	}
	/**
	 * 设置：用户账号
	 */
	public void setYonghuzhanghao(String yonghuzhanghao) {
		this.yonghuzhanghao = yonghuzhanghao;
	}
	/**
	 * 获取：用户账号
	 */
	public String getYonghuzhanghao() {
		return yonghuzhanghao;
	}
	/**
	 * 设置：用户姓名
	 */
	public void setYonghuxingming(String yonghuxingming) {
		this.yonghuxingming = yonghuxingming;
	}
	/**
	 * 获取：用户姓名
	 */
	public String getYonghuxingming() {
		return yonghuxingming;
	}

}
